
package ar.edu.unlu.sistemas.ws.client;

/**
 * Please modify this class to meet your needs
 * This class is not complete
 */

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

/**
 * This class was generated by Apache CXF 2.5.0
 * 2012-02-16T02:01:16.990-03:00
 * Generated source version: 2.5.0
 * 
 */
public final class MovirdroidWebService_MovirdroidWebServiceImplPort_Client {

    private static final QName SERVICE_NAME = new QName("http://ws.sistemas.unlu.edu.ar/", "MovirdroidWebServiceImplService");

    private MovirdroidWebService_MovirdroidWebServiceImplPort_Client() {
    }

    public static void main(String args[]) throws java.lang.Exception {
        URL wsdlURL = MovirdroidWebServiceImplService.WSDL_LOCATION;
        if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 
            File wsdlFile = new File(args[0]);
            try {
                if (wsdlFile.exists()) {
                    wsdlURL = wsdlFile.toURI().toURL();
                } else {
                    wsdlURL = new URL(args[0]);
                }
            } catch (MalformedURLException e) {
                e.printStackTrace();
            }
        }
      
        MovirdroidWebServiceImplService ss = new MovirdroidWebServiceImplService(wsdlURL, SERVICE_NAME);
        MovirdroidWebService port = ss.getMovirdroidWebServiceImplPort();  
        
        {
        System.out.println("Invoking sayHello...");
        ar.edu.unlu.sistemas.ws.client.PeerWS _sayHello_arg0 = new ar.edu.unlu.sistemas.ws.client.PeerWS();
        _sayHello_arg0.setAddress("Address-853872883");
        _sayHello_arg0.setId("Id290455233");
        _sayHello_arg0.setName("Name-1051349597");
        _sayHello_arg0.setPort(Integer.valueOf(332556796));
        _sayHello_arg0.setStatus(Integer.valueOf(-11309006));
        java.lang.Integer _sayHello__return = port.sayHello(_sayHello_arg0);
        System.out.println("sayHello.result=" + _sayHello__return);


        }
        {
        System.out.println("Invoking putIndex...");
        ar.edu.unlu.sistemas.ws.client.PeerWS _putIndex_arg0 = new ar.edu.unlu.sistemas.ws.client.PeerWS();
        _putIndex_arg0.setAddress("Address474154239");
        _putIndex_arg0.setId("Id1759782228");
        _putIndex_arg0.setName("Name253551107");
        _putIndex_arg0.setPort(Integer.valueOf(1517002484));
        _putIndex_arg0.setStatus(Integer.valueOf(-725687520));
        java.lang.String _putIndex_arg1 = "_putIndex_arg1-1730637782";
        java.lang.Integer _putIndex__return = port.putIndex(_putIndex_arg0, _putIndex_arg1);
        System.out.println("putIndex.result=" + _putIndex__return);


        }
        {
        System.out.println("Invoking sayGoodbye...");
        ar.edu.unlu.sistemas.ws.client.PeerWS _sayGoodbye_arg0 = new ar.edu.unlu.sistemas.ws.client.PeerWS();
        _sayGoodbye_arg0.setAddress("Address-323326099");
        _sayGoodbye_arg0.setId("Id-1720101532");
        _sayGoodbye_arg0.setName("Name1369104176");
        _sayGoodbye_arg0.setPort(Integer.valueOf(2131725949));
        _sayGoodbye_arg0.setStatus(Integer.valueOf(-2127113811));
        java.lang.Integer _sayGoodbye__return = port.sayGoodbye(_sayGoodbye_arg0);
        System.out.println("sayGoodbye.result=" + _sayGoodbye__return);


        }
        {
        System.out.println("Invoking query...");
        ar.edu.unlu.sistemas.ws.client.PeerWS _query_arg0 = new ar.edu.unlu.sistemas.ws.client.PeerWS();
        _query_arg0.setAddress("Address272318122");
        _query_arg0.setId("Id-476940709");
        _query_arg0.setName("Name593906801");
        _query_arg0.setPort(Integer.valueOf(-292053883));
        _query_arg0.setStatus(Integer.valueOf(-193500158));
        java.lang.String _query_arg1 = "_query_arg1605841313";
        ar.edu.unlu.sistemas.ws.client.ResultsWS _query__return = port.query(_query_arg0, _query_arg1);
        System.out.println("query.result=" + _query__return);


        }
        {
        System.out.println("Invoking updateIndex...");
        ar.edu.unlu.sistemas.ws.client.PeerWS _updateIndex_arg0 = new ar.edu.unlu.sistemas.ws.client.PeerWS();
        _updateIndex_arg0.setAddress("Address-489174880");
        _updateIndex_arg0.setId("Id-1267031072");
        _updateIndex_arg0.setName("Name-817908217");
        _updateIndex_arg0.setPort(Integer.valueOf(1100690889));
        _updateIndex_arg0.setStatus(Integer.valueOf(-640327435));
        java.lang.String _updateIndex_arg1 = "_updateIndex_arg1546230495";
        java.lang.Integer _updateIndex__return = port.updateIndex(_updateIndex_arg0, _updateIndex_arg1);
        System.out.println("updateIndex.result=" + _updateIndex__return);


        }

        System.exit(0);
    }

}
